<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<html>
  <head>
    <title>输出系统当前时间</title>
  </head>
  
  <body>
   <%!
   		String showDate(){
   			Date date=new Date();
   			SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
   			return sdf.format(date);
   		}
    %>
    <p>当前日期：<%=showDate() %></p>
  </body>
</html>
